﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchInvoicesWebPartUserControl.ascx.cs" Inherits="Turners.DMS.WebParts.SearchInvoicesWebPartUserControl" %>
<head>
    <style type="text/css">
        #SearchFormTable {
            display: block;
            width: 600px;
        }
        .SearchFormLabelContainer {
            display: block;
            float: left;
            width: 190px;
            margin: 0px 10px 5px 0px;
            text-align:right;
        }
        .SearchFormInputContainer, .SearchFormInputDateContainer
        {
            display: block;
            float: left;
            width: 400px;
            margin: 0px 0px 5px 0px;
        }
        .SearchFormInputContainer input
        {
            width: 400px;
        }
    </style>
</head>
<div id="SearchFormTable">
    <div class="SearchFormLabelContainer">
        Search all fields for</div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="SearchAllTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Invoice Date from</span>
    </div>
    <div class="SearchFormInputDateContainer">
        <asp:TextBox ID="DateStartTextBox" runat="server"></asp:TextBox>
        &nbsp;to
        <asp:TextBox ID="DateEndTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Document Number</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="DocumentNumberTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Invoice Type Code</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:DropDownList ID="InvoiceTypeCodeDropDown" runat="server" Height="24px" 
            Width="405px">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem>VINV</asp:ListItem>
            <asp:ListItem>BINV</asp:ListItem>
            <asp:ListItem>VCRD</asp:ListItem>
            <asp:ListItem>BCRD</asp:ListItem>
        </asp:DropDownList>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Customer Number</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="CustomerNumberTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Customer Name</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="CustomerNameTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Branch Name</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:DropDownList ID="BranchDropDown" runat="server" Height="24px" 
            Width="405px">
<%--            <asp:ListItem></asp:ListItem>
            <asp:ListItem>Auckland Cars</asp:ListItem>
            <asp:ListItem>Auckland Commercial</asp:ListItem>
            <asp:ListItem>Auckland Damaged Vehicles</asp:ListItem>
            <asp:ListItem>Christchurch Cars</asp:ListItem>
            <asp:ListItem>Christchurch Commercial</asp:ListItem>
            <asp:ListItem>Christchurch Damaged Vehicles</asp:ListItem>
            <asp:ListItem>Dunedin</asp:ListItem>
            <asp:ListItem>Hamilton</asp:ListItem>
            <asp:ListItem>Napier</asp:ListItem>
            <asp:ListItem>National Trade</asp:ListItem>
            <asp:ListItem>North Shore Cars</asp:ListItem>
            <asp:ListItem>Palmerston North</asp:ListItem>
            <asp:ListItem>Tauranga</asp:ListItem>
            <asp:ListItem>Turners Trucks</asp:ListItem>
            <asp:ListItem>Wellington Cars</asp:ListItem>
            <asp:ListItem>Wellington Commercial</asp:ListItem>
            <asp:ListItem>Wellington Damaged Vehicles</asp:ListItem>
            <asp:ListItem>Whangarei</asp:ListItem>--%>
        </asp:DropDownList>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Good ID</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="GoodNumberTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Plate Number</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="PlateNumberTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Consignment Vendor Number</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="ConsignmentVendorNumberTextBox" runat="server"></asp:TextBox>
    </div>
    <div class="SearchFormLabelContainer">
        <span>Consignment Good Number</span>
    </div>
    <div class="SearchFormInputContainer">
        <asp:TextBox ID="ConsignmentGoodNumberTextBox" runat="server"></asp:TextBox>
    </div>
    <p style="text-align:right;">
        <asp:Button ID="SearchButton" runat="server" Text="Search" 
            onclick="SearchButton_Click" />
    </p>
</div>